import Vue from 'vue'
import App from './App.vue'
// import {hunhe1,hunhe2} from './utils/mixin'
// import plugin from './plugin/plugin'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import store from './store/index.js'
import store from "./store/indexs.js"
// import router from "./router/index.js"
import router from "@/router/index.js"
console.log(router);
Vue.config.productionTip = false
// Vue.mixin(hunhe1);
// Vue.mixin(hunhe2);
// Vue.use(plugin,1,2,3)
// 全局事件总线要让所有的组件都可以看的到
// $emit $on
Vue.use(ElementUI);
new Vue({
  // 将组件放入容器
  render: h => h(App),
  // render(createElement){
  //   return createElement(App);
  // }
  beforeCreate(){
    Vue.prototype.$bus = this;
  },
  store,
  router,
  // this.$router 指向路由·实例
  // this.$router 指向当前路由
  // mounted(){
  //   // this.$bus.age = 18;
  //   console.log(this.$router);
  //   console.log(this.$route);
  // }
}).$mount('#app')
